package org.wyy.vm.view;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import org.wyy.vm.utils.ImageScale;

import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JTextArea;

public class About extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9035551972683484801L;
	private JPanel contentPane;

	/**
	 * Create the frame.
	 */
	public About() {
		setTitle("关于");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 492, 436);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(null);
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("New label");
		lblNewLabel.setBounds(10, 10, 460, 275);
		ImageIcon icon = new ImageIcon(About.class.getResource("/res/login.jpeg"));
		icon = ImageScale.getImage(icon, lblNewLabel.getWidth(), lblNewLabel.getHeight());
		lblNewLabel.setIcon(icon);
		contentPane.add(lblNewLabel);
		
		JTextArea txtrjava = new JTextArea();
		txtrjava.setEnabled(false);
		txtrjava.setEditable(false);
		txtrjava.setLineWrap(true);
		txtrjava.setText("这是我的第一个Java界面程序，很麻烦，但是很高兴最终能够实现它。希望来年我能够有好的运气。——写在2020的尾巴。");
		txtrjava.setBounds(10, 313, 460, 78);
		contentPane.add(txtrjava);
	}
}
